#!/bin/zsh

{{- if eq .chezmoi.os "darwin" }}
echo "󰯁 Update librime for Emacs usage"
export rime_dir=$HOME/{{ .path.rime }}/data/
bash rime-install double-pinyin
bash rime-install emoji:customize:schema=luna_pinyin
bash rime-install emoji:customize:schema=double_pinyin_flypy
{{- end }}

echo "󰯁 Update rime with {{ output "git" "-C" (joinPath .chezmoi.homeDir .path.plum) "rev-parse" "HEAD" }}"
export rime_dir=""
bash rime-install iDvel/rime-ice:others/recipes/full
bash rime-install iDvel/rime-ice:others/recipes/config:schema=flypy
